package cn.threewaters.qtyy.web.controller.business;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import cn.threewaters.qtyy.common.bean.ResponseJson;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;

@Api(tags = "气体检测")
@Controller
@RequestMapping(value = "/qtjc")
public class QtjcController {

	@ApiIgnore
	@ApiOperation(value = "气体检测展示页面")
	@RequestMapping(value = "/main", method = RequestMethod.GET)
	public ModelAndView main(ModelMap modelMap) {
		return new ModelAndView("business/qtjc/qtjc", modelMap);
	}

	@ApiOperation(value = "气体检测列表")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "QuerySbzt", value = "设备状态查询条件", required = true, dataType = "QuerySbzt") })
	@RequestMapping(value = "/list", method = RequestMethod.GET)
	@ResponseBody
	public ResponseJson getList() throws Exception {
		return ResponseJson.builder().success(true).obj(null).build();
	}

}
